
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>3.1 单一 job 案例 · 大数据 Azkaban 课堂笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content=" 李振超">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-page-toc-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-solarizedlight.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-change_girls/girls.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="32-javacao-zuo-ren-wu.html" />
    
    
    <link rel="prev" href="../di-3-zhang-azkaban-shi-zhan.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://www.atguigu.com/" target="_blank" class="custom-link">联系我们</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    第 1 章 Azkaban 概述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../chapter1.html">
            
                <a href="../chapter1.html">
            
                    
                    第 2 章 Azkaban 安装部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../di-3-zhang-azkaban-shi-zhan.html">
            
                <a href="../di-3-zhang-azkaban-shi-zhan.html">
            
                    
                    第 3 章 Azkaban 实战
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.3.1" data-path="31-dan-yi-job-an-li.html">
            
                <a href="31-dan-yi-job-an-li.html">
            
                    
                    3.1 单一 job 案例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="32-javacao-zuo-ren-wu.html">
            
                <a href="32-javacao-zuo-ren-wu.html">
            
                    
                    3.2 java操作任务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="33-hdfs-cao-zuo.html">
            
                <a href="33-hdfs-cao-zuo.html">
            
                    
                    3.3 HDFS 操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="34-mapreduce-ren-wu.html">
            
                <a href="34-mapreduce-ren-wu.html">
            
                    
                    3.4 MapReduce 任务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="35-hive-jiao-ben.html">
            
                <a href="35-hive-jiao-ben.html">
            
                    
                    3.5 hive 脚本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="36-duo-job-gong-zuo-liu-an-li.html">
            
                <a href="36-duo-job-gong-zuo-liu-an-li.html">
            
                    
                    3.6 多 job 工作流案例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >3.1 单一 job 案例</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="31-&#x5355;&#x4E00;-job-&#x6848;&#x4F8B;">3.1 &#x5355;&#x4E00; job &#x6848;&#x4F8B;</h1>
<h2 id="&#x6B65;&#x9AA4;1-&#x521B;&#x5EFA;-job-&#x6587;&#x4EF6;">&#x6B65;&#x9AA4;1: &#x521B;&#x5EFA; job &#x6587;&#x4EF6;</h2>
<p>&#x6CE8;&#x610F;, job &#x6587;&#x4EF6;&#x5FC5;&#x987B;&#x662F;&#x4EE5; <code>job</code>&#x7ED3;&#x5C3E;.</p>
<p><code>first.job</code></p>
<pre class="language-"><code class="lang-java"># <span class="token keyword">this</span> is my first job
type<span class="token operator">=</span>command
command<span class="token operator">=</span>echo <span class="token string">&quot;azkaban: first job&quot;</span>
</code></pre>
<h2 id="&#x6B65;&#x9AA4;2-&#x4F7F;&#x7528;-zip-&#x5BF9;-job-&#x6587;&#x4EF6;&#x6253;&#x5305;">&#x6B65;&#x9AA4;2: &#x4F7F;&#x7528; zip &#x5BF9; job &#x6587;&#x4EF6;&#x6253;&#x5305;</h2>
<p>&#x6CE8;&#x610F;: &#x8FD9;&#x91CC;&#x5FC5;&#x987B;&#x4F7F;&#x7528; zip &#x8FDB;&#x884C;&#x6253;&#x5305;.</p>
<pre class="language-"><code class="lang-bash"><span class="token function">zip</span> first.zip first.job
</code></pre>
<h2 id="&#x6B65;&#x9AA4;3-&#x628A;-zip-&#x6587;&#x4EF6;&#x4F20;&#x9012;&#x5230;-window-&#x7CFB;&#x7EDF;">&#x6B65;&#x9AA4;3: &#x628A; zip &#x6587;&#x4EF6;&#x4F20;&#x9012;&#x5230; window &#x7CFB;&#x7EDF;</h2>
<h2 id="&#x6B65;&#x9AA4;4-&#x5728;-web-&#x754C;&#x9762;&#x521B;&#x5EFA;&#x9879;&#x76EE;">&#x6B65;&#x9AA4;4: &#x5728; web &#x754C;&#x9762;&#x521B;&#x5EFA;&#x9879;&#x76EE;</h2>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1.gif" alt=""></p>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; &#x5C1A;&#x7845;&#x8C37;&#x5927;&#x6570;&#x636E; 2019 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification"><br>&#x8BE5;&#x6587;&#x4EF6;&#x6700;&#x540E;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2019-03-13 16:26:14
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../di-3-zhang-azkaban-shi-zhan.html" class="navigation navigation-prev " aria-label="Previous page: 第 3 章 Azkaban 实战">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="32-javacao-zuo-ren-wu.html" class="navigation navigation-next " aria-label="Next page: 3.2 java操作任务">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"3.1 单一 job 案例","level":"1.3.1","depth":2,"next":{"title":"3.2 java操作任务","level":"1.3.2","depth":2,"path":"di-3-zhang-azkaban-shi-zhan/32-javacao-zuo-ren-wu.md","ref":"di-3-zhang-azkaban-shi-zhan/32-javacao-zuo-ren-wu.md","articles":[]},"previous":{"title":"第 3 章 Azkaban 实战","level":"1.3","depth":1,"path":"di-3-zhang-azkaban-shi-zhan.md","ref":"di-3-zhang-azkaban-shi-zhan.md","articles":[{"title":"3.1 单一 job 案例","level":"1.3.1","depth":2,"path":"di-3-zhang-azkaban-shi-zhan/31-dan-yi-job-an-li.md","ref":"di-3-zhang-azkaban-shi-zhan/31-dan-yi-job-an-li.md","articles":[]},{"title":"3.2 java操作任务","level":"1.3.2","depth":2,"path":"di-3-zhang-azkaban-shi-zhan/32-javacao-zuo-ren-wu.md","ref":"di-3-zhang-azkaban-shi-zhan/32-javacao-zuo-ren-wu.md","articles":[]},{"title":"3.3 HDFS 操作","level":"1.3.3","depth":2,"path":"di-3-zhang-azkaban-shi-zhan/33-hdfs-cao-zuo.md","ref":"di-3-zhang-azkaban-shi-zhan/33-hdfs-cao-zuo.md","articles":[]},{"title":"3.4 MapReduce 任务","level":"1.3.4","depth":2,"path":"di-3-zhang-azkaban-shi-zhan/34-mapreduce-ren-wu.md","ref":"di-3-zhang-azkaban-shi-zhan/34-mapreduce-ren-wu.md","articles":[]},{"title":"3.5 hive 脚本","level":"1.3.5","depth":2,"path":"di-3-zhang-azkaban-shi-zhan/35-hive-jiao-ben.md","ref":"di-3-zhang-azkaban-shi-zhan/35-hive-jiao-ben.md","articles":[]},{"title":"3.6 多 job 工作流案例","level":"1.3.6","depth":2,"path":"di-3-zhang-azkaban-shi-zhan/36-duo-job-gong-zuo-liu-an-li.md","ref":"di-3-zhang-azkaban-shi-zhan/36-duo-job-gong-zuo-liu-an-li.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["splitter","expandable-chapters-small","page-toc-button","-highlight","prism","prism-themes","tbfed-pagefooter","sitemap","change_girls","livereload"],"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy 尚硅谷大数据 2019","modify_label":"<br>该文件最后修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prismjs/themes/prism-solarizedlight.css"]},"disqus":{"shortName":"zhenchao125"},"livereload":{},"splitter":{},"change_girls":{"time":30,"urls":["http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/62171757.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/83394736.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/15906185.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/15906185.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/3394270.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/65028582.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/20359261.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/37472401.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/3355397.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/11075549.jpg-atguiguImg"]},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"sitemap":{"hostname":"http://bigdataatguigu.applinzi.com/"},"page-toc-button":{"maxTocDepth":3,"minTocSize":2},"prism-themes":{},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":" 李振超","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"大数据 Azkaban 课堂笔记","language":"zh-hans","links":{"sidebar":{"联系我们":"http://www.atguigu.com/"}},"gitbook":"*","description":"课堂笔记,学生提前预习"},"file":{"path":"di-3-zhang-azkaban-shi-zhan/31-dan-yi-job-an-li.md","mtime":"2019-03-13T08:26:14.357Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-04-02T05:03:07.664Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-page-toc-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-change_girls/girls.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

